﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IRIS.Models;
namespace TestIRISProject.Controllers
{
    //This functions are clearly obvios
    class MockDataRepo : IRIS.Models.IDataRepo
    {
        List<FAQ> faq = new List<FAQ>();
        public void addFAQ(FAQ theData)
        {
            faq.Add(theData);
        }

        public FAQ getFAQById(int id)
        {
            return faq[id];
        }
        public IEnumerable<FAQ> getFAQs()
        {
            return faq;
        }
        public void editFAQ(int id,FAQ theData)
        {
            faq[id] = theData;
        }

        List<StaticPage> staticPages = new List<StaticPage>();
        
        public IEnumerable<StaticPage> getAllStaticPages()
        {
            return staticPages;
        }
        
        public void addStaticPage(StaticPage s)
        {
            staticPages.Add(s);

        }

        public StaticPage getStaticById(int id)
        {
            return staticPages[id];
        }

      
        public void editStaticPage(int id, StaticPage s)
        {
            staticPages[id] = s;
        }


    }
}
